package exttable.testversioning.testversionrunner;

import exttable.testversioning.IDBUtils;
import exttable.testversioning.TestVersioningDBUtils;
import exttable.testversioning.tablemodel.TestVersioningModel;
import exttable.view.ViewPhases;

import java.util.Vector;

/**
 * Created by IntelliJ IDEA.
 * User: Admin
 * Date: Aug 11, 2010
 * Time: 5:06:07 PM
 * To change this template use File | Settings | File Templates.
 */
public class TestVersionModel {
    private Vector<ViewPhases> phases;
    private IDBUtils dataService;
    private TestVersioningModel testVersionTable;
    private TestVersioningModel testVersionTablePhase;


    public TestVersionModel() {
        dataService = new TestVersioningDBUtils();
        phases = dataService.getPhases();
        testVersionTable = new TestVersioningModel(true, true, true, null, false);
        testVersionTablePhase = new TestVersioningModel(true, false, false, null, false);
    }

    public Vector<ViewPhases> getPhases() {
        return phases;
    }

    public TestVersioningModel getTestVersionTable() {
        return testVersionTable;
    }

    public TestVersioningModel getTestVersionTablePhase() {
        return testVersionTablePhase;
    }
}
